<div id="mainColumns">
	<div id="mypageSection" class="seciton">
		<div class="section">
			<h2>Your Transaction List</h2>
			<table id="transactionData">
				<tr>
					<th>created</th>
					<th>transaction_id</th>
					<th>course title</th>
					<th>amount</th>
					<th>payment method</th>
					<th>status</th>
				</tr>
				<?php foreach ($transactions as $transaction):?>
				<?php
				$id = $transaction['Transaction']['detail_id'];
				?>
				<tr>
					<td><?php echo $this->Time->format('Y.m.d', $transaction['Transaction']['created']);?></td>
					<td><?php echo $transaction['Transaction']['id'];?></td>
					<?php if (isset($coursesDetail[$id])):?>
					<td><?php echo $this->Html->link($coursesDetail[$id]['title'], array('controller' => 'course', 'action' => 'view', $coursesDetail[$id]['id'], '?' => array('detail' => $id)));?></td>
					<?php else:?>
					<td>&nbsp;</td>
					<?php endif;?>
					<td>¥<?php echo number_format($transaction['Transaction']['amount']);?></td>
					<td><?php echo $transaction['PaymentMethod']['payment_method'];?></td>
					<td><?php echo $transaction['Transaction']['status'] ? 'payment success' : 'payment fault';?></td>
				</tr>
				<?php endforeach;?>
			</table>
		</div>
		<div id="footPageNation">
			<?php echo $this->element('paginator');?>
		</div>
	</div>
</div><!-- /mainColumns -->
<div id="subColumns">
	<?php echo $this->element('user/left_user_profile'); ?>

	<?php echo $this->element('user/left_user_navi'); ?>
</div><!-- /subColumns -->